{{template "header"}}

	<title>Genome Stat</title>
	<meta http-equiv="refresh" content='10'>
	</head>
	{{template "navbar" .}}
	    <div class="container">		
	<div class="table-responsive" style="margin-top:15px;">
			<table class="table table-hover table-bordered">
			<thead>
				<tr>
				<th style="text-align:center">Host</th>
				<th style="text-align:center">Current Items</th>
				<th style="text-align:center">Total Items</th>
				<th style="text-align:center">Items Rate</th>
				<th style="text-align:center">Action</th>
			<tr>
			</thead>
			<tbody>
				 {{range .data}}
					<tr>
					<td style="text-align:left">{{.Host}}</td>
					<td style="text-align:left">{{.CurrentItems}}</td>
					<td style="text-align:right">{{.TotalItems}}</td>
					<td style="text-align:right">{{.ItemsRate}}</td>
					<td style="text-align:center"><button id="delKestrel" name="{{.Host}}" type="button" class="btn btn-danger">Del</button></td>
					</tr>
				{{end}}
			</tbody>
			</table>
			</div>
		</div>
	</body>
<script type="text/javascript">
    $('#delKestrel').on('click', function(){
      window.location.href = 'kestrel/del?app=' + {{.app}} + "&host=" + this.name
    });
</script>
</html>